package cn.izeno.wx

import cn.izeno.wx.models.component.ComponentToken
import com.alibaba.fastjson.JSON

fun main() {
  val jsonString = "{\"component_access_token\":\"36_atM3ibGWL32QqBo9WZ8txCbjekfJkYIq4bwu1mJ3DXhV632vzDw9RD6t7okkh5TzITtLZXa4j7rSlGOYkzI8MMrICZ5Of3c8lfvScKkvfljGG99GYiX6LX1LMi1cdMqlLiD8tQBZkL97TaCWAMGiAAAJVP\",\"expires_in\":7200}"
  val token  = JSON.parseObject(jsonString, ComponentToken::class.java)
  println(JSON.toJSONString(token));
}